package cn.msqweb.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 阿里云-OSS服务配置类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = "aliyun.oss")
@RefreshScope
@Component
public class AliYunOSSConfig {

    private String endpoint;
    private String bucketName;
    private String accessKeyID;
    private String accessKeySecret;
}
